package com.itheima.test1110work;

//冰箱类 子类
public class IceBox extends Elect {
    private String Style; // 门款式
    private String Method; // 制冷方式
//有参构造
    public IceBox(String name, String size, String color, double price, String style, String method) {
        super(name, size, color, price);
        Style = style;
        Method = method;
    }
    //无参构造
    public IceBox(){}

    public String getStyle() {
        return Style;
    }

    public void setStyle(String style) {
        Style = style;
    }

    public String getMethod() {
        return Method;
    }

    public void setMethod(String method) {
        Method = method;
    }
}
